<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="com.ogilvy.cms.bean.CmsResource" table="CMS_RESOURCE" >
        <id name="cmrId" type="java.lang.Integer">
            <column name="CMR_ID" />
            <generator class="identity" />
        </id>
        <property name="cmrCmpId" type="java.lang.Integer">
            <column name="CMR_CMP_ID" not-null="true" />
        </property>
        <property name="cmrName" type="java.lang.String">
            <column name="CMR_NAME" length="50" />
        </property>
        <property name="cmrTypeId" type="java.lang.Integer">
            <column name="CMR_TYPE_ID"  />
        </property>
        <property name="cmrFileName" type="java.lang.String">
            <column name="CMR_FILE_NAME" length="100" />
        </property>
        <property name="cmrOrderVal" type="java.lang.Integer">
	 		<column name="CMR_ORDER_VAL"  />
		</property>
	 	<property name="cmrWidth" type="java.lang.String">
	 		<column name="CMR_WIDTH" length="10"  />
		</property>
        <property name="cmrHeight" type="java.lang.String">
	 		<column name="CMR_HEIGHT" length="10"  />
		</property>
		<property name="cmrAlt" type="java.lang.String">
	 		<column name="CMR_ALT" length="100"  />
		 </property>
        <property name="cmrAddtime" type="java.util.Date">
            <column name="CMR_ADDTIME"  />
        </property>
        <property name="cmrAdduser" type="java.lang.String">
            <column name="CMR_ADDUSER" length="50" />
        </property>
        <property name="cmrLasttime" type="java.util.Date">
            <column name="CMR_LASTTIME"  />
        </property>
        <property name="cmrLastuser" type="java.lang.String">
            <column name="CMR_LASTUSER" length="50" />
        </property>
        
    </class>
</hibernate-mapping>
